﻿// TestClient.CommentFile.xaml.cs
// ----------------------------------------------------------------------------
// Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.html)
// ----------------------------------------------------------------------------
// HighSpeed-Solutions, LLC
// Copyright (c) 2001-2010
// ----------------------------------------------------------------------------
// File:       CommentFile.xaml.cs
// Author:     HSS\gbanta
// Created:    07/16/2011
// Modified:   07/16/2011
// ----------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace TestClient
{
	public partial class CommentFile : ChildWindow
	{
		public CommentFile()
		{
			InitializeComponent();
			this.CommentText = string.Empty;
		}

		public string CommentText { get; set; }

		protected override void OnOpened()
		{
			this.txtComment.Text = this.CommentText;
			base.OnOpened();
		}

		private void OKButton_Click(object sender, RoutedEventArgs e)
		{
			this.CommentText = this.txtComment.Text;
			this.DialogResult = true;
		}

		private void CancelButton_Click(object sender, RoutedEventArgs e)
		{
			this.DialogResult = false;
		}
	}
}